package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.PageResponseResult;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {

    public ResponseResult findNewsList(WmNewsPageReqDto dto);

    public ResponseResult saveNews(WmNewsDto wmNews, Short isSubmit);

    public ResponseResult findNewsById(Integer newsId);

    public ResponseResult delNews(Integer id);

    public ResponseResult downOrUp(WmNewsDto dto);

    public List<Integer> findNewsListShenhe();

    public PageResponseResult findNewsRenGongPage(NewsAuthDto dto);

    public ResponseResult findOne(Integer id);

    public ResponseResult authNewsRenGong(NewsAuthDto dto);

}
